﻿using DTcms.Common;

namespace DTcms.Web.Mvc.UI.Page
{
    public partial class article : BaseController
    {
        protected int page;//当前页码
        protected int order_id;//排序方式

        public article(Model.site_channel site_model)
        {
            page = DTRequest.GetQueryInt("page", 1);
            order_id = DTRequest.GetQueryInt("order_id");

            #region 验证频道列表数据
            if (string.IsNullOrEmpty(site_model.seo_title))
            {
                site_model.seo_title = site.seo_title;
            }
            if (string.IsNullOrEmpty(site_model.seo_keywords))
            {
                site_model.seo_keywords = site.seo_keywords;
            }
            if (string.IsNullOrEmpty(site_model.seo_description))
            {
                site_model.seo_description = site.seo_description;
            }
            #endregion
        }
    }
}
